package com.abel.quiz.vo;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import java.util.ArrayList;
import java.util.List;

import com.abel.quiz.po.AwardLogPo;

/**
* @author abel.lin
* @date_time 2017-08-04 13:03
* @description
*/
public class AwardLogDomain extends AwardLogPo {

    public static AwardLogDomain genDomain(AwardLogPo model){
        if(model == null){
            model = new AwardLogPo();
        }
        AwardLogDomain domain = JSON.parseObject(JSON.toJSONString(model), AwardLogDomain.class);
        return domain;
    }

    public static List<AwardLogDomain> genDomainList(List<AwardLogPo> modelList){
        if(modelList == null){
            modelList = new ArrayList<AwardLogPo>();
        }
        List<AwardLogDomain> domainList = JSONArray.parseArray(JSONArray.toJSONString(modelList), AwardLogDomain.class);
        return domainList;
    }

}
